package org.xqyy.eval.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.xqyy.eval.model.TEvalDetail;
import tk.mybatis.mapper.common.Mapper;

import java.util.HashMap;
import java.util.List;

@Repository
public interface TEvalDetailMapper extends Mapper<TEvalDetail> {
    /**
     * 根据科室id和评价周期查询不是满分答案
     * @param deptId 科室id
     * @param yearmonth 周期
     * @return
     */
    public List<TEvalDetail> selectNotFullScoreByDetpIdAndYearMonth(@Param("deptId") String deptId,
                                                                    @Param("yearmonth")String yearmonth);

    /**
     * 查询某个科室在一个填报周期内的具体某张调查问卷的填报情况
     *
     * @param yearmonth 填报周期
     * @param deptId    科室id
     * @param paperId   试卷id
     * @return
     */
    public List<HashMap<String,Object>> evalEdList(@Param("deptId") String deptId,
                                                   @Param("yearmonth")String yearmonth,
                                                   @Param("paperId") Integer paperId,
                                                   @Param("list") List<Integer> list);
}